ofEnum

inline fun <T : Enum<T>> ofEnum(list: List<T>): ValidatedList<T>

creates a Validated Enum List

Allows any value in the Enum, repeating elements allowed

Return

ValidatedList from the list provided

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

, the Enum type

list

input List


inline fun <T : Enum<T>> ofEnum(vararg e: T): ValidatedList<T>

creates a Validated Enum List

Allows any value in the Enum, repeating elements allowed

Return

ValidatedList from the list provided

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

, the Enum type

e

vararg Enum inputs to construct the list